namespace Data.ProviderModel
{
	using System.Data;

	public static class DbCommandExtensions
	{
		public static void AddParameter<T>(this IDbCommand dbCommand, string parameterName, T value)
		{
			var parameter = dbCommand.CreateParameter();
			parameter.ParameterName = parameterName;
			parameter.Value = value;
			dbCommand.Parameters.Add(parameter);
		}
	}
}